/*
 *  Identity.cpp
 *  TubeTruck
 *
 *  Created by Aeturnum on 5/22/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "Identity.h"

using namespace std;
using namespace TTP::Crypt;

//RSA mId;

Identity::Identity()
{}

Identity::Identity(int keyLength) : mId(keyLength)
{}

Identity::Identity(vector<byte>& pubKey)
{
   mId.setPublicKey(pubKey);
}

Identity::~Identity()
{}

Identity::Identity(const Identity& o) : mId(o.mId)
{}

uint32_t Identity::getIdHash() {
   return mId.getIdHash();
}

SKey* Identity::getSignKey() {
   return &mId;
}

EKey* Identity::getEnKey() {
   return &mId;
}